﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace blackhouse.Web.Controls.Validators {
    public enum PredefinedRegexValidators {

        /// <summary>
        /// Default value, using when you would pass custom regex.
        /// </summary>
        None,

        /// <summary>
        /// Typical phone number with an optional country code and extension. Note that the validation is **relaxed**, please add extra validations for your specific country.
        /// </summary>
        Phone,

        /// <summary>
        /// Matched a url such as http://myserver.com, https://www.crionics.com or ftp://myserver.ws
        /// </summary>
        Url,

        /// <summary>
        /// Easy, an email : username@hostname.com
        /// </summary>
        Email,

        /// <summary>
        /// An ISO date, YYYY-MM-DD
        /// </summary>
        Date,

        /// <summary>
        /// Floating points with an optional sign. ie. -143.22 or .77 but also +234,23
        /// </summary>
        Number,

        /// <summary>
        /// Integers with an optional sign. ie. -635 +2201 738
        /// </summary>
        Integer,

        /// <summary>
        /// An IP address (v4) ie. 127.0.0.1
        /// </summary>
        Ipv4,

        /// <summary>
        /// Only numbers and spaces characters
        /// </summary>
        OnlyNumberSp,

        /// <summary>
        /// Only letters and space characters
        /// </summary>
        OnlyLetterSp,

        /// <summary>
        /// Only letters and numbers, no space
        /// </summary>
        OnlyLetterNumber

    }
}